# Contributor: psykose <alice@ayaya.dev>
# Maintainer: psykose <alice@ayaya.dev>
pkgname=zam-plugins
pkgver=3.14
_dpf_gitrev=08669d1bc30c6e971fde800eade4ca40104ba8b2
pkgrel=0
pkgdesc="Collection of LADSPA/LV2/VST/JACK audio plugins for high-quality processing"
url="https://github.com/zamaudio/zam-plugins"
arch="all"
license="GPL-2.0-or-later"
options="!check" # no testsuite
makedepends="
	bash
	fftw-dev
	jack-dev
	ladspa-dev
	liblo-dev
	libsamplerate-dev
	lv2-dev
	mesa-dev
	zita-convolver-dev
	"
source="
	$pkgname-$pkgver.tar.gz::https://github.com/zamaudio/zam-plugins/archive/refs/tags/$pkgver.tar.gz
	dpf-$_dpf_gitrev.tar.gz::https://github.com/DISTRHO/DPF/archive/$_dpf_gitrev.tar.gz
	"

prepare() {
	default_prepare

	# overwrite folder
	rmdir "$builddir"/dpf
	mv "$srcdir"/DPF-$_dpf_gitrev "$builddir"/dpf
}

build() {
	make PREFIX=/usr
}

package() {
	make DESTDIR="$pkgdir" PREFIX=/usr install
}

sha512sums="
30c168ee855011b2f17fcc5e440039628399ab40b69bed9af284713df6155360b38d8249b3de1616e9a2f39885cff43c9e2505868aae891fd22bc92297c1962c  zam-plugins-3.14.tar.gz
b24e32682ea38785a776d13f9fd58052d9e7813416ba59f05c9c4af28c4b61c26d832870c7d6b65a46863f122dd29fe573dc01994d1c601a10bea7b75d49ba5d  dpf-08669d1bc30c6e971fde800eade4ca40104ba8b2.tar.gz
"
